<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:s="/struts-tags"
	xmlns:display="http://displaytag.sf.net"
	version="2.0">
    <jsp:directive.page language="java"
        contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
    <jsp:text>
        <![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
    </jsp:text>
    <jsp:text>
        <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
    </jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><fmt:message key="personList.title"/></title>
</head>
<body>
	<c:set var="buttons">
		<c:url value="/editPerson.html" var="url"/>
		<fmt:message key="button.add" var="message"/>
	    <input type="button" style="margin-right: 5px"
	        onclick="location.href='${url}'"
	        value="${message}"/>
	    
	    <c:url value="/mainMenu.html" var="url"/>
	    <fmt:message key="button.done" var="message"/>
	    <input type="button" onclick="location.href='${url}'"
	        value="${message}"/>
	</c:set>
	<c:out value="${buttons}" escapeXml="false" />
	
	<s:set name="persons" value="persons" scope="request"/>
	<display:table name="persons" class="table" requestURI="" id="personList" export="true" pagesize="25">
	    <display:column property="id" sortable="true" href="editPerson.html" 
	        paramId="id" paramProperty="id" titleKey="person.id"/>
	    <display:column property="firstName" sortable="true" titleKey="person.firstName"/>
	    <display:column property="lastName" sortable="true" titleKey="person.lastName"/>
	
	    <display:setProperty name="paging.banner.item_name" value="person"/>
	    <display:setProperty name="paging.banner.items_name" value="people"/>
	
	    <display:setProperty name="export.excel.filename" value="Person List.xls"/>
	    <display:setProperty name="export.csv.filename" value="Person List.csv"/>
	    <display:setProperty name="export.pdf.filename" value="Person List.pdf"/>
	</display:table>
	
	<c:out value="${buttons}" escapeXml="false" />
	
	<script type="text/javascript">
	    highlightTableRows("personList");
	</script>

</body>
</html>
</jsp:root>